package com.qzdsoft.erpcloud.service.act;

import java.util.Date;
import java.util.List;

import com.qzdsoft.erpcloud.domain.act.CenterCompany;
import com.qzdsoft.erpcloud.vo.query.act.CenterCompanyInfo;
import com.qzdsoft.vo.LayTableResponse;
import com.qzdsoft.vo.Response;

/**
 * Created by Yang
 */
public interface CenterCompanyService {

    CenterCompany getById(Integer id);
    
    CenterCompanyInfo getByOneId(Integer id);
    
    List<CenterCompanyInfo> getData(String name, String email, String contactUser, String contactPhone, Integer status, int page, int pageSize);

    /**
     * 获取所有的公司信息列表
     * @return
     */
    List<CenterCompany> getAllCompany();

    /**
     * 根据条件获取公司信息列表
     * @param name
     * @param email
     * @param contactUser
     * @param contactPhone
     * @param status
     * @param timeFrom
     * @param timeTo
     * @param recommendName
     * @param roleName
     * @param startSize
     * @param pageSize
     * @return
     */
    LayTableResponse<CenterCompanyInfo> selectData(String name, String email, String contactUser, String contactPhone, Integer status, Date timeFrom, Date timeTo, String recommendName, String roleName, Integer startSize, Integer pageSize);
    /**
     * 修改账户信息
     * @param centerCompanyInfo
     * @return
     */
    Response<String> edit(CenterCompanyInfo centerCompanyInfo);
    /**
     * 根据id删除公司信息
     * @param id
     * @return
     */
    Response<String> del(Integer id);
    
    Response<String> pwdAlter(String id,String opd,String npd);
}
